package com.woniuxy.mini.controller;

import com.woniuxy.mini.entity.Shop;
import com.woniuxy.mini.service.ShopService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Objects;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xgy
 * @since 2025-01-06
 */
@RestController
@RequestMapping("/shop")
public class ShopController {
    @Autowired
    private ShopService shopService;

    @RequestMapping("/list")
    public List<Shop> list() {
        //查询该表的所有数据
        System.out.println("查询该表的所有数据");
        return shopService.queryAll();
    }

}
